package com.statistics.yfdata.entity;

import javax.persistence.*;

/**
 * @author MeowParse
 * @date 2017/8/31.
 */
@Entity
public class DataEnvironmentEntity {

	private int id;
	private String mac;
	private int offset;
	private Integer pm25;
	private Integer temperature;
	private Integer humidity;
	private Integer co2;
	private Integer noise;
	private long createTime;

	@Id
	@Column(name = "id")
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Basic
	@Column(name = "mac")
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	@Basic
	@Column(name = "offset")
	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	@Basic
	@Column(name = "pm25")
	public Integer getPm25() {
		return pm25;
	}

	public void setPm25(Integer pm25) {
		this.pm25 = pm25;
	}

	@Basic
	@Column(name = "temperature")
	public Integer getTemperature() {
		return temperature;
	}

	public void setTemperature(Integer temperature) {
		this.temperature = temperature;
	}
	@Basic
	@Column(name = "humidity")
	public Integer getHumidity() {
		return humidity;
	}

	public void setHumidity(Integer humidity) {
		this.humidity = humidity;
	}
	@Basic
	@Column(name = "co2")
	public Integer getCo2() {
		return co2;
	}

	public void setCo2(Integer co2) {
		this.co2 = co2;
	}
	@Basic
	@Column(name = "noise")
	public Integer getNoise() {
		return noise;
	}

	public void setNoise(Integer noise) {
		this.noise = noise;
	}
	@Basic
	@Column(name = "create_time")
	public long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
}
